<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<meta content="yes" name=" apple-mobile-web-app-capable" />
	<title>去保养—有人情味的保养</title>
	<link rel="stylesheet" href="{:C('WEB_URL')}Public/mobile/css/adj.css" />
</head>
<body>
	<header>
		<div class="header-box p-container w-box">
			<div class="back-twrap w1">
				<a href="javascript:window.parent.enterData.closeOrderInfo()"><em class="back-btn"></em></a>
			</div>
			<div class="title-twrap w1 txt-el">接车等待</div>
			<div class="phone-twrap w1">
				<a href="#"><em class="phone-btn"></em></a>
			</div>
		</div>
	</header>
	<div class="content">
		<div class="container clearfix">
			<div class="waitcar-img fl">
				<img src="{:C('WEB_URL')}Public/mobile/images/adj/superman-ico.png" alt="" />
			</div>
			<div class="waitcar-txt">
				<p style="color:#f60">正在为您指派取车司机</p>
				<p style="font-size:14px;">稍后会有工作人员联系您</p>
			</div>
		</div>
		<div class="waitcar-btn container">
			<a href="javascript:void(0)" id="J_closeOrder" data-orderId="{$order['order_id']}">取消接车</a>
		</div>
	</div>
	

	<include file="Public/adjBaseHtml" />
	<script type="text/javascript">

		$(function(){
			$("#J_closeOrder").tap(function(){
				var _t=$(this),
					orderId=_t.attr("data-orderId");

				if(_t.attr("data-status")=="close"){
					window.parent.location.href="/adj/";
					return false;
				}

				$.ajax({
					dataType:"json",
					type:"post",
					url:"/adj/closeOrderQBY",
					data:{"orderId":orderId},
					success:function(res){
						if(res.status==1){
							window.parent.location.href="/adj/replayOrder/";
							//_t.html("重新呼叫").attr("data-status","close").parent().addClass("btn-c");
						}
						//showMsgTip(res.info,2000);
					}
				})
			})
		})


		//回退按钮
		function rerurnPage(){
			if($("#J_closeOrder").attr("data-status")=="close"){
				//关闭
				window.parent.enterData.refresh();

			}else{
				//关闭详情窗口
				window.parent.enterData.closeOrderInfo();
			}
		}
		var winH=document.documentElement.clientHeight,
			aCont=document.getElementsByClassName('content')[0];
		aCont.style.minHeight=winH-213+"px";


	</script>
</body>
</html>